Skip to content

Support Alt+Backspace for word deletion in text areas #4741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

rtzll
Copy link
Contributor

@rtzll rtzll commented Jul 14, 2025

  • PR Description
    Add support for Alt+Backspace (Option+Backspace on macOS) to delete entire words in text input areas, matching common text editor behavior.

  • Please check if the PR fulfills these requirements

    • Cheatsheets are up-to-date (run go generate ./...)
    • Code has been formatted (see here)
    • Tests have been added/updated (see here for the integration test guide)
    • Text is internationalised (see here)
    • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
    • Docs have been updated if necessary
    • You've read through your own file changes for silly mistakes etc

Add support for Alt+Backspace (Option+Backspace on macOS) to delete
entire words in text input areas, matching common text editor behavior.
@stefanhaller stefanhaller force-pushed the support-alt-backspace-word-deletion branch from 65e822b to 6956706 Compare July 17, 2025 17:16
@stefanhaller stefanhaller added the enhancement New feature or request label Jul 17, 2025
@stefanhaller
Copy link
Collaborator

Nice, thanks. I took the liberty of moving the ctrl-W handling up there too, to have them both in one place.

@stefanhaller stefanhaller merged commit d159b28 into jesseduffield:master Jul 17, 2025
24 of 25 checks passed
@rtzll rtzll deleted the support-alt-backspace-word-deletion branch July 17, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants